package com.doudou.collection.domain.service;

import com.doudou.collection.infrastructure.common.web.ResultVO;
import com.doudou.collection.infrastructure.core.security.CustomUserDetails;
import com.doudou.collection.orm.dto.CommentsDTO;
import com.doudou.collection.orm.vo.CommentBlogVO;
import com.doudou.collection.orm.vo.CommentPersonalVO;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface CommentService {


    /**
     * 发布文章评论
     * @param commentsDTO
     * @return
     */
    void insertComment(CommentsDTO commentsDTO,Long userId,Long blogId);


    /**
     * 根据评论id删除评论
     * @param id
     * @return
     */
    void delete(@PathVariable Long id);


    /**
     * 根据文章id查询评论列表
     * @param id
     * @return
     */
    List<CommentBlogVO> list(@PathVariable Long id);


    /**
     * 根据用户id查询个人评论列表
     * @param id
     * @return
     */
    List<CommentPersonalVO> listing(@PathVariable Long id);




}
